<template>
    <div>
        <h1>test</h1>
    </div>
    <form action="#">
        <div class="row">
            <div class="col-lg-12">
                <div class="form-group">
                    <label class="form-control-label">客户名称
                        <span>xxxx</span>
                        <input type="text"  class="form-control" placeholder="请输入用户名">
                    </label>
                </div>
            </div>
        </div>
    </form>

</template>
<script setup>
const route = useRoute()
onMounted( async () => {
    await nextTick()
    const id = route.query.id
    if(!id) {
        toast('参数错误,请选择具体的班级')
        router.push('/teacher/class')
        return;
    }
    const data = await classApi.getDetail(id)
   
})
</script>